import redis
# Redis

from .decorator.ext_decorator import ext_decorator
@ext_decorator
def init_redis(app):
    global redis_client
    redis_url = app.config.get('REDIS_URL', 'redis://localhost:6379/0')
    redis_client = redis.StrictRedis.from_url(redis_url, decode_responses=True)